<template>
  <el-dialog
    title="查看详情"
    :visible.sync="showDialog"
    @close="close"
    width="1100px"
    append-to-body="true">
    <el-container>
      <el-main>
        <el-table
          :data="updateList"
          border
          show-header
          stripe
          highlight-current-row>
          <el-table-column label="序号" width="50" align="center">
            <template slot-scope="scope">
              <span>{{scope.$index + 1}}</span>
            </template>
          </el-table-column>
          <el-table-column
            prop="exName"
            label="修改字段"
            align="center"
            width="120">
          </el-table-column>
          <el-table-column
            prop="updateCause"
            label="修改原因"
            align="center"
            width="120">
          </el-table-column>
          <el-table-column
            prop="createTime"
            label="修改时间"
            align="center"
            show-overflow-tooltip>
          </el-table-column>
          <el-table-column
            prop="exOldValue"
            label="旧值"
            align="center"
            show-overflow-tooltip>
          </el-table-column>
          <el-table-column
            prop="exNewValue"
            label="新值"
            align="center"
            show-overflow-tooltip>
          </el-table-column>
        </el-table>
      </el-main>
    </el-container>
    <div slot="footer" class="dialog-footer">
      <el-button icon="el-icon-circle-close" size="small" @click="close()">取 消</el-button>
    </div>
  </el-dialog>
</template>
<script>

export default {
  data() {
    return {
      showDialog: false,
      updateList: []
    };
  },
  computed: {},
  mounted() {
  },
  methods: {
    show(params) {
      console.log(params);
      this.updateList = params
      this.showDialog = true
    },
    close() {
      this.dataList = []
      this.showDialog = false
    }
  }
};
</script>
<style >
.cstomUsrWidth {
  width: 50%;
  overflow: hidden;
}
.cstomUsrWidth .el-dialog__body {
  max-height: 400px;
  overflow: auto;
}
.cstomUsrWidth .el-form-item__label {
  /* width: 110px !important; */
}
.cstomUsrWidth .el-form-item__content {
  position: relative;
  /* margin-left: 100px !important; */
}
.cstomUsrWidth .item-form-input {
  width: 50% !important;
}
.cstomUsrWidth .el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 50% !important;
}
</style>
